package com.youpingou.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * 用户管理
 */
@TableName("tb_user")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class User implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    
    @TableField(value="name")
    private String name;

    @TableField(value="password")
    private String password;

    @TableField(value="face")
    private String face;

    @TableField(value="expriece")
    private Integer expriece;

    @TableField(value="email")
    private String email;

    @TableField(value="mobile")
    private String mobile;

    @TableField(value="created_at",fill = FieldFill.INSERT)
    private String createdAt;

    @TableField(value="updated_at",fill = FieldFill.INSERT_UPDATE)
    private String updatedAt;

    @TableField(exist = false)//数据库不存在的字段，忽略映射
    private String code;
    @TableField(exist = false)
    private String repassword;


    @TableField(exist = false)
    private String cart;

}